﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Media;

namespace GameSPK.Model
{
    class LabelLayout
    {
        public double Width { set; get; }
        public double Height { set; get; }
        public double Left { set; get; }
        public double Top { set; get; }
        public double FontSize { set; get; }
        public int iTime1 { set; get; }
        public int iTime2 { set; get; }
        public Brush Foreground { get; private set; }
        public string sForeground
        {
            set
            {
                Foreground = new SolidColorBrush((Color)ColorConverter.ConvertFromString(value));
            }
        }
        public Brush Background { get; private set; }
        public string sBackground
        {
            set
            {
                Background = new SolidColorBrush((Color)ColorConverter.ConvertFromString(value));
            }
        }
        
        public Brush Foreground2 { get; private set; }
        public string sForeground2
        {
            set
            {
                Foreground2 = new SolidColorBrush((Color)ColorConverter.ConvertFromString(value));
            }
        }
        public Brush Background2 { get; private set; }
        public string sBackground2
        {
            set
            {
                Background2 = new SolidColorBrush((Color)ColorConverter.ConvertFromString(value));
            }
        }

    }
}
